home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- *
- * CustomGetFile Dialog Demo
- *
- * EventHandler.h
- *
- * Written in CodeWarrior Gold 5.5
- * August 31, 1995
- *
- * Copyright © 1995 Carl B. Constantine
- * Some portions Copyright © 1995 MetroWerks, Inc.
- * Some portions Copyright © 1995 Apple Computer, Inc.
- *
- **********************************************************************/
-
- /*------------------------------------------------------------------
- #
- # File History
- #
- # Date Description of Change
- # ---- ---------------------
- # Aug 31/93 — Original creation of file
- #
- #
- #
- -------------------------------------------------------------------*/
-
- #pragma once
-
- #define LAST_HANDLER 3 /* Number of Apple Event handlers - 1 */
-
-
- struct AEinstalls
- {
- AEEventClass theClass;
- AEEventID theEvent;
- AEEventHandlerProcPtr theProc;
- };
- typedef struct AEinstalls AEinstalls;
-
-
-
- void EventLoop( void );
- void DoEvent( EventRecord *event );
- void DoOSEvent( EventRecord *event );
- void DoMenuCommand( long menuResult );
- void AdjustMenus( void );
- void DoKeyPress( WindowPtr wp, EventRecord *event );
-
- Boolean Init_AE_Events( void ); /* High level Apple Events */
- void Do_High_Level( EventRecord *AERecord );
- pascal OSErr Core_AE_Open_Handler( AppleEvent *messagein, AppleEvent *reply, long refIn ); /* Handlers */
- pascal OSErr Core_AE_OpenDoc_Handler( AppleEvent *messagein, AppleEvent *reply, long refIn );
- pascal OSErr Core_AE_Print_Handler( AppleEvent *messagein, AppleEvent *reply, long refIn );
- pascal OSErr Core_AE_Quit_Handler( AppleEvent *messagein, AppleEvent *reply, long refIn );
-
- /*============================= End of File ==============================*/